<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body>

 <style>
           	span{
           	
           	
           	}
         </style>
<div id="address_main" xlvobject="xlv.obj.pane" xlvprop="{glow:{enable:true},border:{enable:true}}"
		xlvmethod="{
			styleFor:function(root){
				var style={};
				style.background='url(/xlive/images/pinkTexture.gif) left top repeat';
				style.fontFamily='Arial';
				style.fontSize='12px';
				style.minWidth='300px';
				style.minHeight='200px';
				style.width='400px'	;						
				style.padding='4px';
				Element.setStyle(root,style);
			}
		}"
	>
	<div xlvobject="xlv.obj.webObject" 
	 	 xlvprop="{name:'street',objectURL:'addr.address'}">
	 	 </div>
	<!-- <div xlvobject="xlv.obj.tree" xlvprop="{dmName:'street'}"></div>  -->
	<div xlvobject="xlv.obj.dmTrigger"
				 xlvprop="{dmName:'street',listener:{when:'afterModelChanged',notify:'setChanged',memoType:'create',memoMethods:'get-street'}}"
				 xlvmethod="{
				 	process:function(options){
				 		var dm=this.getDataModel();
				 		if('true'!=dm.getValue('get-street.return.valid')){
							return alert('error :'+dm.getValue('get-street.return.why'));
				 		}
				 		var nodes =dm.getNode('get-street.return.data.xml-body.array').childNodes;
				 		
				 		var s=this.getObjectById('street_content');	
				 		while(s.firstChild)xlv.sys.dispose(s.firstChild,true);
				 		
				 		for (var j = 0; j < nodes.length; j ++){ 
						    	var street=xlv.sys.clonePatternNode(s._pattern);							    						    	
								s.appendChild(street);
								xlv.sys.initialize(street);
								street.setAttribute('id','street'+(j+1));								
								xlv.util.setElementValue(street,xlv.util.getElementValue(nodes[j]));
							
							}
				 		this.getObjectById('area_content2').style.display='none';
						this.getObjectById('street_content2').style.display='block';
				 	
				 		
					}
				}"
			>
			</div>

<div id="ad_input" xlvobject="xlv.obj.input" style="width:350px">
</div>
<div id="address_content" xlvobject="xlv.obj.generic" >
<div id="city_content" xlvobject="xlv.obj.generic" style="float:left";"
		xlvmethod="{
		
		construct:function(){
			this.$V.citys =['22','基隆市','台北市','新北市','桃園縣','新竹市','新竹縣','苗栗縣','台中市','彰化縣','南投縣','雲林縣','嘉義市','嘉義縣','台南市','高雄市','屏東縣','台東縣','花蓮縣','宜蘭縣','澎湖縣','金門縣','連江縣'];			
			this._pattern=xlv.util.findChild(this,{id:'city0'},false,false);
			if(this._pattern)this._pattern.parentNode.removeChild(this._pattern);
			},	
			initial:function(){
				this.$self('initial');				
				for(var c=1;c<this.$V.citys.length;c++){
					var city=xlv.sys.clonePatternNode(this._pattern);
					this.appendChild(city);
					xlv.sys.initialize(city);
					city.setAttribute('id','city'+c);
					xlv.util.setElementValue(city,this.$V.citys[c]);
					
				}					
			},					
			styleFor:function(root){
				var style={};
				style.background='url(/xlive/images/pinkTexture.gif) left top repeat';
				style.fontFamily='Arial';
				style.fontSize='12px';
				style.minWidth='180px';
				style.minHeight='180px';
				style.padding='4px';
				Element.setStyle(root,style);
			}
		}"
	>
	
	<span id="city0" style="font-size:12pt; margin:4px; color:#1E29FF; text-decoration:underline; cursor:pointer; " 
	                xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){		
						    var a=this.getObjectById('area_content');	
						    var i=this.getAttribute('id').replace('city','');
						    var alength=a.area_account[i] - a.area_account[i-1];
						    var index = a.area_account[i-1] + 1;
						    this.getObjectById('address_content').$V.p1=xlv.util.getElementValue(this);
						    while(a.firstChild)xlv.sys.dispose(a.firstChild,true);
						    for (var j = 0; j < alength; j ++){ 
						    	var area=xlv.sys.clonePatternNode(a._pattern);						    	
								a.appendChild(area);
								xlv.sys.initialize(area);
								area.setAttribute('id','area'+(j+1));
								xlv.util.setElementValue(area,a.areas[index + j]);
							}
							this.getObjectById('city_content').style.display='none';
							this.getObjectById('area_content2').style.display='block';
							this.getObjectById('ad_input').mvc_valueToView(xlv.util.getElementValue(this));
						}
					}"
			>pattern</span>
</div>
<div id="area_content2" xlvobject="xlv.obj.generic"  style="float:left;display:none">
 <button id="back_city" xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){
							this.getObjectById('city_content').style.display='block';
							this.getObjectById('area_content2').style.display='none';
							this.getObjectById('ad_input').mvc_valueToView('');
							}
						
					}"
			>回上層</button>
<div id="area_content" xlvobject="xlv.obj.generic" 
		xlvmethod="{
		
		construct:function(){
			this.areas = new Array();
			this.area_account = new Array();
			this.area_account[0] = 0;
			this.areas[1] = '仁愛區';
			this.areas[2] = '信義區';
			this.areas[3] = '中正區';
			this.areas[4] = '中山區';
			this.areas[5] = '安樂區';
			this.areas[6] = '暖暖區';
			this.areas[7] = '七堵區';
			this.area_account[1] = 7;
			this.areas[8] = '中正區';
			this.areas[9] = '大同區';
			this.areas[10] = '中山區';
			this.areas[11] = '松山區';
			this.areas[12] = '大安區';
			this.areas[13] = '萬華區';
			this.areas[14] = '信義區';
			this.areas[15] = '士林區';
			this.areas[16] = '北投區';
			this.areas[17] = '內湖區';
			this.areas[18] = '南港區';
			this.areas[19] = '文山區';
			this.area_account[2] = 19;
			this.areas[20] = '萬里區';
			this.areas[21] = '金山區';
			this.areas[22] = '板橋區';
			this.areas[23] = '汐止區';
			this.areas[24] = '深坑區';
			this.areas[25] = '石碇區';
			this.areas[26] = '瑞芳區';
			this.areas[27] = '平溪區';
			this.areas[28] = '雙溪區';
			this.areas[29] = '貢寮區';
			this.areas[30] = '新店區';
			this.areas[31] = '坪林區';
			this.areas[32] = '烏來區';
			this.areas[33] = '永和區';
			this.areas[34] = '中和區';
			this.areas[35] = '土城區';
			this.areas[36] = '三峽區';
			this.areas[37] = '樹林區';
			this.areas[38] = '鶯歌區';
			this.areas[39] = '三重區';
			this.areas[40] = '新莊區';
			this.areas[41] = '泰山區';
			this.areas[42] = '林口區';
			this.areas[43] = '蘆洲區';
			this.areas[44] = '五股區';
			this.areas[45] = '八里區';
			this.areas[46] = '淡水區';
			this.areas[47] = '三芝區';
			this.areas[48] = '石門區';
			this.area_account[3] = 48;
			this.areas[49] = '中壢市';
			this.areas[50] = '平鎮市';
			this.areas[51] = '龍潭鄉';
			this.areas[52] = '楊梅市';
			this.areas[53] = '新屋鄉';
			this.areas[54] = '觀音鄉';
			this.areas[55] = '桃園市';
			this.areas[56] = '龜山鄉';
			this.areas[57] = '八德市';
			this.areas[58] = '大溪鎮';
			this.areas[59] = '復興鄉';
			this.areas[60] = '大園鄉';
			this.areas[61] = '蘆竹鄉';
			this.area_account[4] = 61;
			this.areas[62] = '東區';
			this.areas[63] = '北區';
			this.areas[64] = '香山區';
			this.area_account[5] = 64;
			this.areas[65] = '竹北市';
			this.areas[66] = '湖口鄉';
			this.areas[67] = '新豐鄉';
			this.areas[68] = '新埔鎮';
			this.areas[69] = '關西鎮';
			this.areas[70] = '芎林鄉';
			this.areas[71] = '寶山鄉';
			this.areas[72] = '竹東鎮';
			this.areas[73] = '五峰鄉';
			this.areas[74] = '橫山鄉';
			this.areas[75] = '尖石鄉';
			this.areas[76] = '北埔鄉';
			this.areas[77] = '峨眉鄉';
			this.area_account[6] = 77;
			this.areas[78] = '竹南鎮';
			this.areas[79] = '頭份鎮';
			this.areas[80] = '三灣鄉';
			this.areas[81] = '南庄鄉';
			this.areas[82] = '獅潭鄉';
			this.areas[83] = '後龍鎮';
			this.areas[84] = '通霄鎮';
			this.areas[85] = '苑裡鎮';
			this.areas[86] = '苗栗市';
			this.areas[87] = '造橋鄉';
			this.areas[88] = '頭屋鄉';
			this.areas[89] = '公館鄉';
			this.areas[90] = '大湖鄉';
			this.areas[91] = '泰安鄉';
			this.areas[92] = '銅鑼鄉';
			this.areas[93] = '三義鄉';
			this.areas[94] = '西湖鄉';
			this.areas[95] = '卓蘭鎮';
			this.area_account[7] = 95;
			this.areas[96] = '中區';
			this.areas[97] = '東區';
			this.areas[98] = '南區';
			this.areas[99] = '西區';
			this.areas[100] = '北區';
			this.areas[101] = '北屯區';
			this.areas[102] = '西屯區';
			this.areas[103] = '南屯區';
			this.areas[104] = '太平區';
			this.areas[105] = '大里區';
			this.areas[106] = '霧峰區';
			this.areas[107] = '烏日區';
			this.areas[108] = '豐原區';
			this.areas[109] = '后里區';
			this.areas[110] = '石岡區';
			this.areas[111] = '東勢區';
			this.areas[112] = '和平區';
			this.areas[113] = '新社區';
			this.areas[114] = '潭子區';
			this.areas[115] = '大雅區';
			this.areas[116] = '神岡區';
			this.areas[117] = '大肚區';
			this.areas[118] = '沙鹿區';
			this.areas[119] = '龍井區';
			this.areas[120] = '梧棲區';
			this.areas[121] = '清水區';
			this.areas[122] = '大甲區';
			this.areas[123] = '外埔區';
			this.areas[124] = '大安區';
			this.area_account[8] = 124;
			this.areas[125] = '彰化市';
			this.areas[126] = '芬園鄉';
			this.areas[127] = '花壇鄉';
			this.areas[128] = '秀水鄉';
			this.areas[129] = '鹿港鎮';
			this.areas[130] = '福興鄉';
			this.areas[131] = '線西鄉';
			this.areas[132] = '和美鎮';
			this.areas[133] = '伸港鄉';
			this.areas[134] = '員林鎮';
			this.areas[135] = '社頭鄉';
			this.areas[136] = '永靖鄉';
			this.areas[137] = '埔心鄉';
			this.areas[138] = '溪湖鎮';
			this.areas[139] = '大村鄉';
			this.areas[140] = '埔鹽鄉';
			this.areas[141] = '田中鎮';
			this.areas[142] = '北斗鎮';
			this.areas[143] = '田尾鄉';
			this.areas[144] = '埤頭鄉';
			this.areas[145] = '溪州鄉';
			this.areas[146] = '竹塘鄉';
			this.areas[147] = '二林鎮';
			this.areas[148] = '大城鄉';
			this.areas[149] = '芳苑鄉';
			this.areas[150] = '二水鄉';
			this.area_account[9] = 150;
			this.areas[151] = '南投市';
			this.areas[152] = '中寮鄉';
			this.areas[153] = '草屯鎮';
			this.areas[154] = '國姓鄉';
			this.areas[155] = '埔里鎮';
			this.areas[156] = '仁愛鄉';
			this.areas[157] = '名間鄉';
			this.areas[158] = '集集鎮';
			this.areas[159] = '水里鄉';
			this.areas[160] = '魚池鄉';
			this.areas[161] = '信義鄉';
			this.areas[162] = '竹山鎮';
			this.areas[163] = '鹿谷鄉';
			this.area_account[10] = 163;
			this.areas[164] = '斗南鎮';
			this.areas[165] = '大埤鄉';
			this.areas[166] = '虎尾鎮';
			this.areas[167] = '土庫鎮';
			this.areas[168] = '褒忠鄉';
			this.areas[169] = '東勢鄉';
			this.areas[170] = '台西鄉';
			this.areas[171] = '崙背鄉';
			this.areas[172] = '麥寮鄉';
			this.areas[173] = '斗六市';
			this.areas[174] = '林內鄉';
			this.areas[175] = '古坑鄉';
			this.areas[176] = '莿桐鄉';
			this.areas[177] = '西螺鎮';
			this.areas[178] = '二崙鄉';
			this.areas[179] = '北港鎮';
			this.areas[180] = '水林鄉';
			this.areas[181] = '口湖鄉';
			this.areas[182] = '四湖鄉';
			this.areas[183] = '元長鄉';
			this.area_account[11] = 183;
			this.areas[184] = '東區';
			this.areas[185] = '西區';
			this.area_account[12] = 185;
			this.areas[186] = '番路鄉';
			this.areas[187] = '梅山鄉';
			this.areas[188] = '竹崎鄉';
			this.areas[189] = '阿里山鄉';
			this.areas[190] = '中埔鄉';
			this.areas[191] = '大埔鄉';
			this.areas[192] = '水上鄉';
			this.areas[193] = '鹿草鄉';
			this.areas[194] = '太保市';
			this.areas[195] = '朴子市';
			this.areas[196] = '東石鄉';
			this.areas[197] = '六腳鄉';
			this.areas[198] = '新港鄉';
			this.areas[199] = '民雄鄉';
			this.areas[200] = '大林鎮';
			this.areas[201] = '溪口鄉';
			this.areas[202] = '義竹鄉';
			this.areas[203] = '布袋鎮';
			this.area_account[13] = 203;
			this.areas[204] = '中西區';
			this.areas[205] = '東區';
			this.areas[206] = '南區';
			this.areas[207] = '北區';
			this.areas[208] = '安平區';
			this.areas[209] = '安南區';
			this.areas[210] = '永康區';
			this.areas[211] = '歸仁區';
			this.areas[212] = '新化區';
			this.areas[213] = '左鎮區';
			this.areas[214] = '玉井區';
			this.areas[215] = '楠西區';
			this.areas[216] = '南化區';
			this.areas[217] = '仁德區';
			this.areas[218] = '關廟區';
			this.areas[219] = '龍崎區';
			this.areas[220] = '官田區';
			this.areas[221] = '麻豆區';
			this.areas[222] = '佳里區';
			this.areas[223] = '西港區';
			this.areas[224] = '七股區';
			this.areas[225] = '將軍區';
			this.areas[226] = '學甲區';
			this.areas[227] = '北門區';
			this.areas[228] = '新營區';
			this.areas[229] = '後壁區';
			this.areas[230] = '白河區';
			this.areas[231] = '東山區';
			this.areas[232] = '六甲區';
			this.areas[233] = '下營區';
			this.areas[234] = '柳營區';
			this.areas[235] = '鹽水區';
			this.areas[236] = '善化區';
			this.areas[237] = '大內區';
			this.areas[238] = '山上區';
			this.areas[239] = '新市區';
			this.areas[240] = '安定區';
			this.area_account[14] = 240;
			this.areas[241] = '新興區';
			this.areas[242] = '前金區';
			this.areas[243] = '苓雅區';
			this.areas[244] = '鹽埕區';
			this.areas[245] = '鼓山區';
			this.areas[246] = '旗津區';
			this.areas[247] = '前鎮區';
			this.areas[248] = '三民區';
			this.areas[249] = '楠梓區';
			this.areas[250] = '小港區';
			this.areas[251] = '左營區';
			this.areas[252] = '仁武區';
			this.areas[253] = '大社區';
			this.areas[254] = '東沙群島';
			this.areas[255] = '南沙群島';
			this.areas[256] = '岡山區';
			this.areas[257] = '路竹區';
			this.areas[258] = '阿蓮區';
			this.areas[259] = '田寮區';
			this.areas[260] = '燕巢區';
			this.areas[261] = '橋頭區';
			this.areas[262] = '梓官區';
			this.areas[263] = '彌陀區';
			this.areas[264] = '永安區';
			this.areas[265] = '湖內區';
			this.areas[266] = '鳳山區';
			this.areas[267] = '大寮區';
			this.areas[268] = '林園區';
			this.areas[269] = '鳥松區';
			this.areas[270] = '大樹區';
			this.areas[271] = '旗山區';
			this.areas[272] = '美濃區';
			this.areas[273] = '六龜區';
			this.areas[274] = '內門區';
			this.areas[275] = '杉林區';
			this.areas[276] = '甲仙區';
			this.areas[277] = '桃源區';
			this.areas[278] = '那瑪夏區';
			this.areas[279] = '茂林區';
			this.areas[280] = '茄萣區';
			this.area_account[15] = 280;
			this.areas[281] = '屏東市';
			this.areas[282] = '三地門鄉';
			this.areas[283] = '霧台鄉';
			this.areas[284] = '瑪家鄉';
			this.areas[285] = '九如鄉';
			this.areas[286] = '里港鄉';
			this.areas[287] = '高樹鄉';
			this.areas[288] = '鹽埔鄉';
			this.areas[289] = '長治鄉';
			this.areas[290] = '麟洛鄉';
			this.areas[291] = '竹田鄉';
			this.areas[292] = '內埔鄉';
			this.areas[293] = '萬丹鄉';
			this.areas[294] = '潮州鎮';
			this.areas[295] = '泰武鄉';
			this.areas[296] = '來義鄉';
			this.areas[297] = '萬巒鄉';
			this.areas[298] = '崁頂鄉';
			this.areas[299] = '新埤鄉';
			this.areas[300] = '南州鄉';
			this.areas[301] = '林邊鄉';
			this.areas[302] = '東港鎮';
			this.areas[303] = '琉球鄉';
			this.areas[304] = '佳冬鄉';
			this.areas[305] = '新園鄉';
			this.areas[306] = '枋寮鄉';
			this.areas[307] = '枋山鄉';
			this.areas[308] = '春日鄉';
			this.areas[309] = '獅子鄉';
			this.areas[310] = '車城鄉';
			this.areas[311] = '牡丹鄉';
			this.areas[312] = '恆春鎮';
			this.areas[313] = '滿州鄉';
			this.area_account[16] = 313;
			this.areas[314] = '台東市';
			this.areas[315] = '綠島鄉';
			this.areas[316] = '蘭嶼鄉';
			this.areas[317] = '延平鄉';
			this.areas[318] = '卑南鄉';
			this.areas[319] = '鹿野鄉';
			this.areas[320] = '關山鎮';
			this.areas[321] = '海端鄉';
			this.areas[322] = '池上鄉';
			this.areas[323] = '東河鄉';
			this.areas[324] = '成功鎮';
			this.areas[325] = '長濱鄉';
			this.areas[326] = '太麻里鄉';
			this.areas[327] = '金峰鄉';
			this.areas[328] = '大武鄉';
			this.areas[329] = '達仁鄉';
			this.area_account[17] = 329;
			this.areas[330] = '花蓮市';
			this.areas[331] = '新城鄉';
			this.areas[332] = '秀林鄉';
			this.areas[333] = '吉安鄉';
			this.areas[334] = '壽豐鄉';
			this.areas[335] = '鳳林鎮';
			this.areas[336] = '光復鄉';
			this.areas[337] = '豐濱鄉';
			this.areas[338] = '瑞穗鄉';
			this.areas[339] = '萬榮鄉';
			this.areas[340] = '玉里鎮';
			this.areas[341] = '卓溪鄉';
			this.areas[342] = '富里鄉';
			this.area_account[18] = 342;
			this.areas[343] = '宜蘭市';
			this.areas[344] = '頭城鎮';
			this.areas[345] = '礁溪鄉';
			this.areas[346] = '壯圍鄉';
			this.areas[347] = '員山鄉';
			this.areas[348] = '羅東鎮';
			this.areas[349] = '三星鄉';
			this.areas[350] = '大同鄉';
			this.areas[351] = '五結鄉';
			this.areas[352] = '冬山鄉';
			this.areas[353] = '蘇澳鎮';
			this.areas[354] = '南澳鄉';
			this.areas[355] = '釣魚台';
			this.area_account[19] = 355;
			this.areas[356] = '馬公市';
			this.areas[357] = '西嶼鄉';
			this.areas[358] = '望安鄉';
			this.areas[359] = '七美鄉';
			this.areas[360] = '白沙鄉';
			this.areas[361] = '湖西鄉';
			this.area_account[20] = 361;
			this.areas[362] = '金沙鎮';
			this.areas[363] = '金湖鎮';
			this.areas[364] = '金寧鄉';
			this.areas[365] = '金城鎮';
			this.areas[366] = '烈嶼鄉';
			this.areas[367] = '烏坵鄉';
			this.area_account[21] = 367;
			this.areas[368] = '南竿鄉';
			this.areas[369] = '北竿鄉';
			this.areas[370] = '莒光鄉';
			this.areas[371] = '東引鄉';
			this.area_account[22] = 371;
			this.areas[372] = '東沙群島';
			this.areas[373] = '南沙群島';
			this.area_account[23] = 373;
			this.areas[374] = '釣魚台';
			this._pattern=xlv.util.findChild(this,{id:'area0'},false,false);
			if(this._pattern)this._pattern.parentNode.removeChild(this._pattern);
			},	
			initial:function(){
				this.$self('initial');				
								
			},					
			styleFor:function(root){
				var style={};
				style.background='url(/xlive/images/pinkTexture.gif) left top repeat';
				style.fontFamily='Arial';
				style.fontSize='12px';
				style.minWidth='180px';
				style.minHeight='180px';
				style.padding='4px';
				Element.setStyle(root,style);
			}
		}"
	>
	
	<span id="area0" style="font-size:12pt; margin:4px; color:#1E29FF; text-decoration:underline; cursor:pointer;" 
	                xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){						
							var ad_input=this.getObjectById('ad_input');
							var p1=this.getObjectById('address_content').$V.p1;
							this.getObjectById('address_content').$V.p2=xlv.util.getElementValue(this);
							var p2=xlv.util.getElementValue(this);
							ad_input.mvc_valueToView(p1 +p2);
							var dm=this.getDataModel('street');
							dm.setValue(p1,'get-street.city');
							dm.setValue(p2,'get-street.area');
							dm.webMethod('get-street');
						}
					}"
			>pattern</span>
</div>
</div>
<div id="street_content2" xlvobject="xlv.obj.generic"  style="float:left;display:none">
 <button id="back_area" xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){
							this.getObjectById('city_content').style.display='none';
							this.getObjectById('area_content2').style.display='block';
							this.getObjectById('street_content2').style.display='none';
							this.getObjectById('ad_input').mvc_valueToView(this.getObjectById('address_content').$V.p1);
							}
						
					}"
			>回上層</button>
<div id="street_content" xlvobject="xlv.obj.generic" 
		xlvmethod="{
		
		construct:function(){
			this._pattern=xlv.util.findChild(this,{id:'street0'},false,false);
			if(this._pattern)this._pattern.parentNode.removeChild(this._pattern);
			},	
			initial:function(){
				this.$self('initial');				
								
			},					
			styleFor:function(root){
				var style={};
				style.background='url(/xlive/images/pinkTexture.gif) left top repeat';
				style.fontFamily='Arial';
				style.fontSize='12px';
				style.minWidth='180px';
				style.minHeight='180px';
				style.padding='4px';
				Element.setStyle(root,style);
			}
		}"
	>
	
	<span id="street0" style="font-size:10pt; margin:4px; color:#1E29FF; text-decoration:underline; cursor:pointer;" 
	                xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){						
							var ad_input=this.getObjectById('ad_input');
							var p1=ad_input.mvc_valueFromView();
							var p2=xlv.util.getElementValue(this);
							ad_input.mvc_valueToView(p1 +p2);
							this.getObjectById('street_content2').style.display='none';
							this.getObjectById('number_content2').style.display='block';
							
						}
					}"
			>pattern</span>
</div>
</div>
<div id="number_content2" xlvobject="xlv.obj.generic"  style="float:left;display:none">
 <button id="back_street" xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){
							this.getObjectById('city_content').style.display='none';
							this.getObjectById('area_content2').style.display='none';
							this.getObjectById('street_content2').style.display='block';
							this.getObjectById('number_content2').style.display='none';
							this.getObjectById('ad_input').mvc_valueToView(this.getObjectById('address_content').$V.p1+this.getObjectById('address_content').$V.p2);
							}
						
					}"
			>回上層</button>
<div id="number_content" xlvobject="xlv.obj.generic" 
		xlvmethod="{
		
		construct:function(){
			this._pattern=xlv.util.findChild(this,{id:'number0'},false,false);
			if(this._pattern)this._pattern.parentNode.removeChild(this._pattern);
			},	
			initial:function(){
				this.$self('initial');	
				var s='1234567890';
				s+='一二三四五六七八九零';
				s+='ABCDEFGHIJKLMNOPQRSTUVWXYZ';
				s+='巷弄號之樓室棟鄰村-';		
				for(var i=0;i<s.length;i++){
					var num=xlv.sys.clonePatternNode(this._pattern);
					this.appendChild(num);
					xlv.sys.initialize(num);
					xlv.util.setElementValue(num,s.charAt(i));
					
				}	
				
				
					
								
			},					
			styleFor:function(root){
				var style={};
				style.background='url(/xlive/images/pinkTexture.gif) left top repeat';
				style.fontFamily='Arial';
				style.fontSize='12px';
				style.minWidth='180px';
				style.minHeight='180px';
				style.padding='4px';
				Element.setStyle(root,style);
			}
		}"
	>
	
	<span id="number0" style="font-size:14pt; margin:5px; color:#1E29FF; text-decoration:underline; cursor:pointer;" 
	                xlvobject="xlv.obj.process"
					xlvmethod="{
						process:function(){						
							var ad_input=this.getObjectById('ad_input');
							var p1=ad_input.mvc_valueFromView();
							var p2=xlv.util.getElementValue(this);
							ad_input.mvc_valueToView(p1 +p2);
							
						}
					}"
			>pattern</span>
</div>
</div>

</div>
</div>
</body>

</html>